<?php
function connection($io, $connection)
{
    echo "connection\n";
}
function disconnect($io, $connection)
{
    echo "disconnect\n";
}
function ttl($io, $connection)
{
    echo "ttl\n";
    $connection->emit('ttl', 'ok');
}